import random
print('0为石头，1为剪刀，2为布')
num = int(input('请输入你的选择'))
computer = random.randint(0,2)
print('电脑出的是',computer)
print('用户输入的是',num)
if num==computer:
    print('平局')
elif (num==0 and computer==1) or (num==1 and computer==2) or (num==2 and computer==0):
    print('你赢了！！！')
else:
    print('you,lose!')
